﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="recommendlist.ascx.cs" Inherits="Com.Web.coffinegurunaru.manager.menu.recommendlist" %>
<%@ Import Namespace="Com.Library.DB.Menu" %>
<table cellpadding="0" cellspacing="1" border="0" style="background-color:Black">
<tr style="background-color:#eeeeee; height:30px;">
	<td style="width:80px;">번호</td>
	<td style="width:150px;">이미지</td>
	<td style="width:150px;">링크</td>
	<td style="width:150px;">링크타입</td>
	<td style="width:150px;">설명</td>
	<td style="width:100px;">작성자</td>
	<td style="width:120px;">날짜</td>
	<td style="width:135px;">-</td>
</tr>
<%foreach (RecommendMenuEntity item in RecommendList) {%>

<tr class="m_RecommendInfo_<%=item.SeqNo %>" data="{'SeqNo':'<%=item.SeqNo%>'}">
	<td style="width:80px;background-color:White;"><%=item.SeqNo%></td>
	<td style="background-color:White; width:150px;"><img src="<%=item.ImageURL %>" width="150"  /></td>
	<td style="background-color:White; width:150px;"><%=item.Link%></td>
	<td style="width:150px;background-color:White;"><%=item.LinkType == 0 ? "링크없음" : ( item.LinkType == 1 ? "현재창" : "새창" )%></td>
	<td style="width:150px;background-color:White; text-align:center;"><%=item.Description.Replace("\n", "<br />")%></td>
	<td style="width:100px;background-color:White; text-align:center;"><%=item.ManagerName%></td>
	<td style="width:120px;background-color:White; text-align:center;"><%=item.CreateDate.ToString("yyyy-MM-dd")%></td>
	<td style="width:130px;background-color:White; text-align:center;"><input type="button" class="m_btModify" value="수정" />&nbsp;&nbsp;<input type="button" class="m_btRemove" value="삭제" /></td>
</tr>



<tr class="m_RecommendInput_<%=item.SeqNo %>" style="display:none;" data="{'SeqNo':'<%=item.SeqNo%>'}">
	<td style="width:80px;background-color:White;"><%=item.SeqNo%></td>
	<td style="background-color:White;"><input type="text" readonly="readonly" class="m_ImageURL" value="<%=item.ImageURL %>" /><br /><input type="button" class="m_btnImage" value="이미지선택" /></td>
	<td style="background-color:White;"><input type="text" readonly="readonly" class="m_Link" value="<%=item.Link %>" /></td>
	<td style="width:150px;background-color:White; text-align:left;">&nbsp;
		<select style="width:100px" class="m_LinkType">
			<option value="0" <%=item.LinkType==0?"selected='selected'" : "" %>>링크없음</option>
			<option value="1" <%=item.LinkType==1?"selected='selected'" : "" %>>현재창</option>
			<option value="2" <%=item.LinkType==2?"selected='selected'" : "" %>>새창</option>
		</select>
	</td>

	<td style="width:150px;background-color:White; text-align:center;"><textarea cols="22" rows="6" class="m_Desc" ><%=item.Description%></textarea></td>	
	<td style="width:100px;background-color:White; text-align:center;"><%=item.ManagerName%></td>
	<td style="width:120px;background-color:White; text-align:center;"><%=item.CreateDate.ToString("yyyy-MM-dd")%></td>
	<td style="width:130px;background-color:White; text-align:center;"><input type="button" class="m_btModifyConfirm" value="확인" />&nbsp;&nbsp;<input type="button" class="m_btModifyCancel" value="취소" /></td>
</tr>
<% } %>

</table>

